from django.contrib import admin
from photo.models import Category, Album, Photo, Tag

class CategoryAdmin(admin.ModelAdmin):
    list_display = ('position', 'title')
    
class AlbumAdmin(admin.ModelAdmin):
    list_display = ('title', 'published', 'link')
    
class PhotoAdmin(admin.ModelAdmin):
    list_display = ('title', 'published', 'link')
    
class TagAdmin(admin.ModelAdmin):
    list_display = ('name', 'category')
    
admin.site.register(Category, CategoryAdmin)
admin.site.register(Album, AlbumAdmin)
admin.site.register(Photo, PhotoAdmin)
admin.site.register(Tag, TagAdmin)